<div class="navbar navbar-inverse navbar-fixed-top">
  <div class="navbar-inner">
    <div class="container">
      <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <?php echo anchor('/', 'Money Control', 'class="brand"'); ?>
      <div class="nav-collapse collapse">
        <ul class="nav">
        <!--Transaction sub menu-->
        <li class="dropdown">
          <a class="dropdown-toggle" data-toggle="dropdown" href="#">Transactions <b class="caret"></b></a>
          <ul class="dropdown-menu" id="swatch-menu">
            <li><?php print anchor('transactions/view', 'View Transaction') ?></li>
            <li><?php print anchor('transactions/add', 'Add Transaction') ?></li>
          </ul>
        </li>

        <!--Bills sub menu-->
        <li class="dropdown">
          <a class="dropdown-toggle" data-toggle="dropdown" href="#">Bills <b class="caret"></b></a>
          <ul class="dropdown-menu" id="swatch-menu">
            <li><?php print anchor('bills/view', 'View Bills payed') ?></li>
            <li><?php print anchor('bills/pay', 'Pay bill') ?></li>
            <li><?php print anchor('transactions/billers', 'List / Add Billers') ?></li>
            <li><?php print anchor('transactions/reminders', 'Add / View Reminders') ?></li>
          </ul>
        </li>

        <!--Category sub menu-->
        <li class="dropdown">
          <a class="dropdown-toggle" data-toggle="dropdown" href="#">Category <b class="caret"></b></a>
          <ul class="dropdown-menu" id="swatch-menu">
            <li><?php print anchor('category/view', 'View Category Tree') ?></li>
            <li><?php print anchor('category/add', 'Add Category') ?></li>
          </ul>
        </li>
        </ul>
        <ul class="nav pull-right" id="main-menu-right">
          <li class="dropdown" id="preview-menu"><a class="dropdown-toggle" data-toggle="dropdown" href="#">
            <?php print_r ($this->session->userdata('displayname')); ?>
            <b class="caret"></b></a>
            <ul class="dropdown-menu">
              <li><a href="bootswatch.less">My summary</a></li>
              <li><a href="bootswatch.less">Edit profile</a></li>
              <li class="divider"></li>
              <li><a href="<?php print base_path(); ?>user/logout">Logout</a></li>
            </ul>
          </li>
        </ul>
      </div><!--/.nav-collapse -->
    </div>
  </div>
</div>